
module.exports = {
    option: {
        tooltip: {
            trigger: 'item', // 使用 'item' 来触发每个柱子的提示信息
            formatter: function (params) {
                var res = params.name + '<br/>';
                res += params.seriesName + ': ' + params.value;
                return res;
            }
        },
        legend: {},

        toolbox: {
            feature: {
                dataZoom: {
                    yAxisIndex: 'none'
                },
                restore: {},
                saveAsImage: {}
            }
        },
        grid: {
            left: '3%',
            right: '3%',
            bottom: '20%',
            containLabel: true
        },
        xAxis: [
            {
                type: 'category',
                data: []
            }
        ],
        dataZoom: [
            {
                show: true,
                realtime: true,
                start: 0,
                end: 10
            }
        ],
        yAxis: [
            {
                type: 'value'
            }
        ],
        series: []
    }
};
